package middleware

import (
	"github.com/cuiyuanxin/airuisi-admin/pkg/config"
	"github.com/gin-gonic/gin"
)

func AppInfoMiddleware(configSetting *config.Configs) gin.HandlerFunc {
	return func(c *gin.Context) {
		c.Set("app_name", configSetting.App.AppName)
		c.Set("app_version", configSetting.App.Version)
		c.Next()
	}
}
